<!--
 * @Description: svg组件 结合 vite-plugin-svg-icons使用
 * @Author: HYH
 * @LastEditors: HYH
 * @LastEditTime: 2022-08-18 17:00:23
-->
<script setup lang="ts">
defineProps<{ name: string; className?: string }>()
</script>
<template>
  <svg class="svg-style" :class="className">
    <use :href="'#icon-' + name"></use>
  </svg>
</template>
<style lang="scss" scoped>
.svg-style {
  width: 100px;
  height: 100px;
}
</style>
